package spring.boot.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import spring.boot.admin.model.SysUserRole;

import java.util.List;

public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 根据用户id查询用户拥有的所有角色
     */
    List<Long> selectRoleIdsByUserId(Long userId);

}
